<div class="text_field">
  <div class='select'>
    <%= form_for peer_price, 
          :as => "peer_price_#{peer_price.id}",
          :url => update_status_peer_price_url(peer_price),
          :remote => true,
          :method => :put do |f|
     %> 
      <%= f.select :status, [[t('released'),'released'],[t('paused'),'paused']] %>&nbsp;
      <%= f.submit :class => 'hidden' %>
    <% end %>
  </div>
  <span class='close_it select_close_it'>
  <%= link_to "关闭",show_status_peer_price_url(peer_price),:remote => true, :method => :get, :class => 'l_crud l_close' %>
  </span>
</div>
<script type="text/javascript" charset="utf-8">
  $('#peer_price_<%= peer_price.id %>_status').change(function() {
    $('#peer_price_<%= peer_price.id %>_submit').click()
  });
</script>